//
//  PrintAction.m
//  ICrEAM
//
//  Created by mac on 16/11/30.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "PrintAction.h"

@implementation PrintAction
- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodGet;
}
// 请求URL
- (NSString *)requestUrl {
    if (_printType==GetCarPrintType) {
        return ReceptionPrintUrl;
       
    }
    if (_printType==ProxyPrintType) {
         return OrderPrintUrl;
    }
    if (_printType==BalancePrintType) {
        return BalancePrintUrl;
    }

    return BalancePrintUrl;
}

// 请求参数
- (id)requestArgument {
    NSMutableDictionary *parms=[NSMutableDictionary dictionaryWithCapacity:1];
    switch (_printType) {
        case GetCarPrintType:
            
            break;
        case ProxyPrintType:
            
            break;
        case BalancePrintType:
            if (!IsStrEmpty(_printId)) {
                [parms setObject:_printId forKey:@"BALANCE_NO"];
            }
            break;
        default:
            break;
    }
   
    return parms;
}
@end
